package com.ksd.modules.download.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ksd.commons.AbstractTimeEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("xk_downloads_category")
@SuperBuilder(toBuilder = true)
@ApiModel(value = "AdminDownloadsCategory", description = "下载资源分类")
public class AdminDownloadsCategory extends AbstractTimeEntity {
    @ApiModelProperty("分类标题")
    private String title;
    @ApiModelProperty("图标")
    private String icon;
    @ApiModelProperty("描述")
    private String description;
    @ApiModelProperty("父类ID")
    private Long parentId;
    @ApiModelProperty("排序")
    private Integer sorted;

    public static class Columns {
        public static String IS_DELETED = "is_deleted";
        public static String STATUS = "status";
    }
}
